﻿<?xml version="1.0" encoding="utf-8"?>
<!--
        作者：          liuleyi
        更新时间：      20170227
        用途：          生成存储过程默认模板
-->
<xsl:stylesheet version="2.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:fn="http://www.w3.org/2005/xpath-functions">
	<xsl:output method="text" indent="no" encoding="utf-8" byte-order-mark="no"/>  
	<xsl:template match="/">
	<xsl:result-document encoding="utf-8" method="text" href="./generate/php/Home/Func.php">
	<xsl:variable name="StringTypeDefine" select="document('../model/0101_StringTypeDefine.xml')"/>
	<xsl:variable name="EnumTypeDefine" select="document('../model/0102_EnumTypeDefine.xml')"/>
	<xsl:variable name="BooleanTypeDefine" select="document('../model/0103_BooleanTypeDefine.xml')"/>
	<xsl:variable name="DateTypeDefine" select="document('../model/0104_DateTypeDefine.xml')"/>
	<xsl:variable name="NumberTypeDefine" select="document('../model/0105_NumberTypeDefine.xml')"/>
	<xsl:variable name="IntegerTypeDefine" select="document('../model/0106_IntegerTypeDefine.xml')"/>&lt;?php
namespace Admin\Model;

class Func {

    var $errmsg;
    public function __construct() {
        $this->errmsg = '';
    }
    public function getErrMsg() {
        return $this->errmsg;
    }

<xsl:for-each select="FunNoConfig/FunNo">
/*
*<xsl:value-of select="@label"/>
*/
    public function fun<xsl:value-of select="@code"/>(<xsl:for-each select="Request"><xsl:for-each select="Column">$<xsl:value-of select="@name"/><xsl:if test="position()!=last()">,</xsl:if></xsl:for-each>
</xsl:for-each>){
    $rst;
    return $rst;
}
</xsl:for-each>
?&gt;
</xsl:result-document></xsl:template>  
</xsl:stylesheet>